#ifndef ATHLETE_H
#define ATHLETE_H

#include<QString>
#include<QDate>
#include <QTextStream>
#include <QTextCodec>

class Athlete
{
public:
    Athlete();
    ~Athlete();

    void getValue(int& id, QString& athleteName, QString& code, QString& medalDate, QString& medalLevel, QString& eventName, QString& score, QString& country_name);
    void setValue(int& id, QString& athleteName, QString& code, QString& medalDate, QString& medalLevel, QString& eventName, QString& score, QString& country_name);

    void read(QTextStream& aStream);
    void save(QTextStream& aStream);

    QString getCountryName()
    {
        return country_name;
    }
    QString getName()
    {
        return athleteName;
    }
    int getId()
    {
        return id;
    }

private:
    int id;
    QString athleteName;
    QString code;
    QString medalDate;
    QString medalLevel;
    QString eventName;
    QString score;
    QString country_name;


};

#endif // ATHLETE_H
